/**
 * Class represents a genericgood
 * @author kushagramansingh
 * @version 1.0
 */

package Goods;

import java.io.Serializable;

/**
 * Good
 * @author kushagramansingh
 * @version 1.0
 */
public class Good implements Serializable{
	
	/**
	 * The name of the good
	 */
	private String name;
	
	/**
	 * The base price of the good
	 */
	private int baseprice;
	
	/**
	 * The size of the good
	 */
	private int size;
	
	/**
	 * The legality of the good
	 * 
	 */
	private boolean legal;
	
	/**
	 * Constructor
	 * @param name of the good
	 * @param baseprice of the good
	 * @param legal or not
	 * @param size of the good
	 */
	public Good(String name, int baseprice, boolean legal, int size){
		this.name = name;
		this.baseprice = baseprice;
		this.size = size;
		this.legal = legal;
	}
	
	/**
	 * Gets the name
	 * @return name
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * Gets the base price
	 * @return base price
	 */
	public int getBasePrice(){
		return baseprice;
	}
	
	/**
	 * If good is legal
	 * @return is legal
	 */
	public boolean isLegal(){
		return legal;
	}
	
	/**
	 * Size of the good
	 * @return size
	 */
	public int getSize(){
		return size;
	}
}
